:root {
  --card-box-width: 282px;
  --card-box-margin: 7px;
}

html, body, #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
}

.icon {
  width: 20px;
  height: 20px;
  fill: #eee;
}

#nav {
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#nav .btn {
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nav .nav-item + .nav-item {
  margin-top: 10px;
}

#nav .nav-item.dropdown {
  cursor: pointer;
}

#nav .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
}

#main {
  flex: 1;
  height: auto;
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#main .main-input-upload {
  width: 400px;
  height: 300px;
  margin: auto;
  font-size: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main .row {
  width: 100%;
}

#main .row.page-row {
  margin: 0 0 20px 0;
}

#main .card-group {
  width: var(--card-box-width);
  margin: 0 var(--card-box-margin);
  padding: 0;
  overflow: hidden;
}

#main > .alert {
  width: 300px;
  margin: auto;
}

#main .card {
  overflow: hidden;
  height: 200px;
  position: relative;
}

#main .card .card-image {
  width: 100%;
  height: 100%;
  display: flex;
}

#main .card .icon {
  position: absolute;
  right: 0;
  top: -4px;
  z-index: 1;
  fill: var(--bs-primary);
  width: 50px;
  height: 50px;
}

#main .card .page-num {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 4px;
  background-color: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1;
  border-radius: 4px;
}

#main .card .card-image .spinner-border {
  margin: auto;
}

#main .card .card-body,
#main .card .btn-group {
  padding: 0;
}

#main .card .btn-group {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

#main .card:hover .btn-group {
  opacity: 1;
}

#main .card-group .btn-group .btn {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 1;
}

#main .author-info > * {
  width: auto;
}

#main .author-info .ghbtns {
  width: 130px;
  border: none;
}